﻿// See https://aka.ms/new-console-template for more information
using MarvellousWorks.PracticalPatternNet8.SignletonPattern.SignletonN;

Console.WriteLine("Hello, World!");


/*using MarvellousWorks.PracticalPatternNet8.Concept.Indexer;

CustomCollection collection = new CustomCollection();
collection.Add("第一项");
collection.Add("第二项");
collection.Add("第三项");

Console.WriteLine("客户程序：C，你是个集合类型吗？");
Console.WriteLine("集合类型：是");
Console.WriteLine("客户程序：那好，给我第3项。");
Console.WriteLine("集合类型：C[2]，拿去");
Console.WriteLine("第三项内容是：" + collection[2]);*/


var s1 = Sigleton_N.Instance;
var s2 = Sigleton_N.Instance;
var s3 = Sigleton_N.Instance;
Console.WriteLine(s1?.GetHashCode());
Console.WriteLine(s2?.GetHashCode());



